<template>
    <h2>显示页面</h2>
    <table border="1">
        <thead>
        <tr>
            <td>学号</td>
            <td>姓名</td>
            <td>籍贯</td>
            <td>操作</td>
        </tr>   
        </thead>
        <tbody>
        <tr v-for="i in studentInfor">
            <td>{{ i.id }}</td>
            <td>{{ i.name }}</td>
            <td>{{ i.addr }}</td>
            <td><a @click="SelectById(i.id)">操作</a></td>
        </tr> 
        </tbody>
    </table>
</template>
<script setup lang="ts">
const studentInfor=[
{id:"1001",name:"张三",addr:"河南省"},
{id:"1002",name:"李四",addr:"河南省"},
{id:"1003",name:"王五",addr:"河南省"},
{id:"1004",name:"赵六",addr:"河南省"},
{id:"1005",name:"冯七",addr:"河南省"},
{id:"1006",name:"冯道",addr:"河南省"},
{id:"1007",name:"李白",addr:"河南省"},
{id:"1008",name:"杜甫",addr:"河南省"}
]
function SelectById(Sid:string){
    
}


</script>